package com.phpxiu.app.kkylive.wxapi;

/**
 * @file
 * @brief  微信授权返回信息数据结构
 * @author 吴金洲
 * @note 微信授权返回信息数据结构
 *
 */
public class WXAuthInfo {
    /**
     * 正常返回
     */
    private String access_token;
    private String expires_in;//接口调用门票有效时间7200s(两小时)
    private String refresh_token;//当access_token过期失效时，调用刷新access_token接口的门票号
    private String openid;//微信号对应的系统id
    private String scope;//授权作用域，如："scope": "snsapi_userinfo"时表示只能获取用户信息，不能做其它操作
    private String unionid;//当且仅当该移动应用已获得该用户的userinfo授权时，才会出现该字段
    /**
     * 错误返回
     */
    private String errcode;
    private String errmsg;

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public String getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(String expires_in) {
        this.expires_in = expires_in;
    }

    public String getRefresh_token() {
        return refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public String getErrcode() {
        return errcode;
    }

    public void setErrcode(String errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }
}
